package com.jiudaoliu.homeprototype.repository;

import com.jiudaoliu.homeprototype.entity.SourceInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 陈建
 * @Package com.jiudaoliu.homeprototype.repository
 * @Description:
 * @date 2018/9/20 12:47
 */
public interface SourceInfoRepository extends JpaRepository<SourceInfoEntity, Long> {

    List<SourceInfoEntity> findByModelId(Long id);

    List<SourceInfoEntity> findByStatusAndModelId(String status, Long id);
}
